If we want floating point values to be consistent across platforms, then we need to use "strictfp" as per IEEE 754 standard. When a program runs on multiple platforms, precision of floating point differ which in turn given different results. strictfp helps to enforce the precision across all platforms. For example:
Class Level - public strictfp class StrictFpModifierExample{} Method Level - public strictfp void example() {}
Liked By
Write Answer
explain about strictfp keyword in Java ?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
09-Jul-2015